"use client";

import { memo } from "react";
import type { ReactNode, FC } from "react";

import styles from "./style.module.scss";
interface IProps {
  children?: ReactNode;
  name: string;
  tips: string;
}

const DaylySongs: FC<IProps> = (props) => {
  const { name, tips } = props;
  return (
    <>
      <div className={styles.songsItemWrapper}>
        <div className={styles.imgTop}>
          <span className={`${styles.weeks} date`}>星期四</span>
          <span className={`${styles.mday} date`}>27</span>
        </div>
        <div className={styles.textButtom}>
          <a href="">{name}</a>
          {tips && <span>{tips}</span>}
        </div>
      </div>
    </>
  );
};

export default memo(DaylySongs);
